class LogonScene extends eui.Component implements  eui.UIComponent {

	public BtnMoreGame:WF.SingleButton;
	public BtnLogonGame:WF.SingleButton;

	public constructor() {
		super();
	}

	protected partAdded(partName:string,instance:any):void
	{
		super.partAdded(partName,instance);
	}

	protected childrenCreated():void
	{
		super.childrenCreated();

		DragonBonesManager.parseArmatureData("DBLogon");

		let armatureLogon = DragonBonesManager.createArmatrue("Logon", "logo");
		armatureLogon.x = 320;
		armatureLogon.y = 130;
		this.addChild(armatureLogon);

		let armatureGirl = DragonBonesManager.createArmatrue("Logon", "girl");
		armatureGirl.x = 900;
		armatureGirl.y = 720;
		this.addChild(armatureGirl);

		this.BtnMoreGame.addEventListener(egret.TouchEvent.TOUCH_END, this.onMoreGame, this);
		this.BtnLogonGame.addEventListener(egret.TouchEvent.TOUCH_END, this.onLogonGame, this);
	}

	private onMoreGame(_event:egret.TouchEvent):void
	{
		console.log("onMoreGame");
	}

	private onLogonGame(_event:egret.TouchEvent):void
	{
		let mainScene = new MainScene();
		SceneManager.getInstance().replaceScene(mainScene);
	}
}